/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucsur.tp.libreriaelsaber.dao.factories;

import edu.ucsur.tp.libreriaelsaber.dao.PaisDAO;
import edu.ucsur.tp.libreriaelsaber.dao.UsuarioDAO;

public abstract class DAOFactory {

  public static final int TEMP_DATA = 1;
  public static final int MY_SQL = 2;
  public static final int ORACLE = 3;
  
  public static DAOFactory getInstance(int daoType) {
    switch (daoType) {
      case TEMP_DATA:
        return new TemporalDAOFactory();
      case MY_SQL:
        return new MySqlDAOFactory();
      case ORACLE:
        return null;
      default:
        return null;
    }
  }
  
  public abstract UsuarioDAO getUsuario();
  public abstract PaisDAO getPais();
  
}
